import httpRequest from "@/utils/request.js";

export function CreateProblem(data) {
	return new Promise((resolve, reject) => {
		httpRequest({
			method: "POST",
			url: "/problem",
			data
		}).then(res => {
			resolve(res);
		}).catch(err => {
			reject(err);
		})
	})
}
